-- GENERATED SPELL FOR [Hillsbrad Farmer] --


function spell0_2266(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2266', 5330, 1)
end

function Sorts_2266(pUnit, Event)
local choix_sorts_2266 = math.random(0, 0)
if choix_sorts_2266 == 0 then
pUnit:RegisterEvent('spell0_2266', 1, 1)
end
end

function mob2266_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2266', math.random(1500, 3000), 1)
end

function mob2266_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2266_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2266_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2266, 1, 'mob2266_Action')
RegisterUnitEvent(2266, 2, 'mob2266_Leave')
RegisterUnitEvent(2266, 3, 'mob2266_Kill')
RegisterUnitEvent(2266, 4, 'mob2266_Die')
